// 接口返回正确字段名
const code = 'code'
// 接口返回正确code
const errno = 0
// 接口返回提示信息字段名
const msg = 'msg'
// 接口返回重新登录状态码
const reLogin = 424


// 成员登记数据
// const personnelType = {
//   'default': {
//     '': [{type: '1', label: '省'}, {type: '2', label: '市'}, {type: '3', label: '区/县'}, {type: '4', label: '社区'}, {type: '5', label: '公司'}]
//   },
//   '1': {
//     '': [{type: '2', label: '市'}, {type: '4', label: '社区'}, {type: '5', label: '公司'}]
//   },
//   '2': {
//     '': [{type: '3', label: '区/县'}, {type: '4', label: '社区'}, {type: '5', label: '公司'}]
//   },
//   '4': {
//     '': [{type: '4-1', label: '楼号'}]
//   },
//   '4-1': {
//     '': [{type: '4-2', label: '单元号'}]
//   },
//   '4-2': {
//     '': [{type: '4-3', label: '楼层'}]
//   },
//   '4-3': {
//     '': [{type: '4-4', label: '房间号'}],
//     '属性': [{type: '4-4-1', label: '居住'}, {type: '4-4-2', label: '物业'}, {type: '4-4-3', label: '居委会'}, {type: '4-4-4', label: '其他属性'}]
    
//   }
// }

const personnelType = {
  'default':  [{type: '1', label: '省'}, {type: '2', label: '市'}, {type: '3', label: '区/县'}, {type: '4', label: '社区'}, {type: '5', label: '公司'}],
  '1': [{type: '2', label: '市'}, {type: '4', label: '社区'}, {type: '5', label: '公司'}],
  '2': [{type: '3', label: '区/县'}, {type: '4', label: '社区'}, {type: '5', label: '公司'}],
  '4': [{type: '4-1', label: '楼号'}],
  '4-1': [{type: '4-2', label: '单元号'}],
  '4-2':  [{type: '4-3', label: '楼层'}],
  '4-3': [{type: '4-4', label: '房间号'}],
  '4-4': [{type: '4-4-1', label: '居住'}, {type: '4-4-2', label: '物业'}, {type: '4-4-3', label: '居委会'}, {type: '4-4-4', label: '其他属性'}]
}

const statusList = [
  {
    value: '1',
    label: '在线'
  },
  {
    value: '2',
    label: '离线'
  }
]

const assetsList = [
  {
    id: 3,
    date: '2016-05-01',
    label: '设备类',
    address: '上海市普陀区金沙江路 1519 弄',
    children: [{
        id: 31,
        date: '2016-05-01',
        label: '安防设备',
        address: '上海市普陀区金沙江路 1519 弄'
      }, {
        id: 32,
        date: '2016-05-01',
        label: '楼控设备',
        address: '上海市普陀区金沙江路 1519 弄'
    }]
  }, {
    id: 4,
    date: '2016-05-03',
    label: '办公类',
    address: '上海市普陀区金沙江路 1516 弄'
  }
]

const selectList = [
  {
    value: '1',
    label: '门禁系统'
  }, {
    value: '2',
    label: '可视对讲系统'
  }, {
    value: '3',
    label: '视频监控系统'
  }, {
    value: '4',
    label: '停车场系统'
  }
]

const cycleList = [
  {
    value: '1',
    label: '每天'
  }, {
    value: '2',
    label: '每周'
  }, {
    value: '3',
    label: '每月'
  }, {
    value: '4',
    label: '每3月'
  }, {
    value: '5',
    label: '每6月'
  }, {
    value: '6',
    label: '每12月'
  }
]

const treeList = [
  {
    disabled: true,
    icon: null,
    id: "1",
    label: "百万庄后社区",
    children: [
      {
        disabled: true,
        icon: null,
        id: "2",
        label: "1号楼",
      },
      {
        disabled: true,
        icon: null,
        id: "3",
        label: "1单元",
        children: [
          {
            disabled: true,
            icon: null,
            id: "4",
            label: "1层",
            children: [
              {
                disabled: false,
                icon: null,
                id: "1-1",
                label: "101",
              },
              {
                disabled: false,
                icon: null,
                id: "1-2",
                label: "102",
              }
            ]
          },
          {
            disabled: true,
            icon: null,
            id: "5",
            label: "2层",
            children: [
              {
                disabled: false,
                icon: null,
                id: "2-1",
                label: "201",
              },
              {
                disabled: false,
                icon: null,
                id: "2-2",
                label: "202",
              }
            ]
          }
        ]
      }
    ]
  } 
]


export default {
  personnelType,
  treeList,
  selectList,
  statusList,
  assetsList,
  cycleList
}